﻿// MT579




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT579 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagDefinition U000E;

    [Description("Page Number/Continuation Indicator")]
    public MT579.Tag28 PageNumberContinuationIndicator_28
    {
      get
      {
        return new MT579.Tag28((SwiftElement) this, 0, (SwiftDefinitionElement) MT579.U0002);
      }
    }

    [Description("Page Number/Continuation Indicator")]
    public MT579.Tag28 Tag28_PageNumberContinuationIndicator
    {
      get
      {
        return this.PageNumberContinuationIndicator_28;
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 TransactionReferenceNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT579.U0005);
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 Tag20_TransactionReferenceNumber
    {
      get
      {
        return this.TransactionReferenceNumber_20;
      }
    }

    [Description("Related Reference")]
    public Tag21 RelatedReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT579.U0007);
      }
    }

    [Description("Related Reference")]
    public Tag21 Tag21_RelatedReference
    {
      get
      {
        return this.RelatedReference_21;
      }
    }

    [Description("Certificate Number(s)")]
    public Tag35F CertificateNumbers_35F
    {
      get
      {
        return new Tag35F((SwiftElement) this, 0, (SwiftDefinitionElement) MT579.U000E);
      }
    }

    [Description("Certificate Number(s)")]
    public Tag35F Tag35F_CertificateNumbers
    {
      get
      {
        return this.CertificateNumbers_35F;
      }
    }

    public MT579()
      : base(true)
    {
    }

    public MT579(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT579.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT579.MessageDefinition = new SwiftMessageDefinition("MT579", "Statement of Numbers");
      MT579.U0002 = new SwiftTagDefinition("PageNumberContinuationIndicator_28", "Page Number/Continuation Indicator");
      MT579.U0002.TagName = ":28:";
      MT579.U0003 = new SwiftTagSubItemDefinition("PageNumber", "Page Number");
      MT579.U0002.Elements.Add((SwiftDefinitionElement) MT579.U0003);
      MT579.U0004 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT579.U0004.Mandatory = false;
      MT579.U0002.Elements.Add((SwiftDefinitionElement) MT579.U0004);
      MT579.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT579.U0002);
      MT579.U0005 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT579.U0005.TagName = ":20:";
      MT579.U0006 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT579.U0005.Elements.Add((SwiftDefinitionElement) MT579.U0006);
      MT579.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT579.U0005);
      MT579.U0007 = new SwiftTagDefinition("RelatedReference_21", "Related Reference");
      MT579.U0007.TagName = ":21:";
      MT579.U0008 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT579.U0007.Elements.Add((SwiftDefinitionElement) MT579.U0008);
      MT579.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT579.U0007);
      MT579.U000E = new SwiftTagDefinition("CertificateNumbers_35F", "Certificate Number(s)");
      MT579.U000E.TagName = ":35F:";
      MT579.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT579.U000E);
    }

    public class Tag28 : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("28", value);
        }
      }

      internal Tag28(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }
  }
}
